/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NavBar 吸顶效果 */
.sticky-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease !important;
}

.sticky-navbar:hover {
  background-color: rgba(255, 255, 255, 1) !important;
}

/* 确保页面内容不被NavBar遮挡 */
.search-page,
.info-detail-page,
.sick-circle-detail-page,
.register-container,
.disease-detail-page,
.login-container {
  padding-top: 0;
}

/* 为有NavBar的页面添加顶部间距 */
.search-page .search-container,
.info-detail-page .info-card,
.sick-circle-detail-page .content,
.register-container .register-content,
.disease-detail-page .content,
.login-container .login-content {
  margin-top: 0;
}
